import service from '../untils/reqult'

export function add(data) {
    return service({
        url: '/system/dept',
        method: 'post',
        data: data
    })
}
export function del (id) {
    return service({
        url: '/system/dept/'+id,
        method: 'delete',
    })
}
export function getList () {
    return service({
        url: '/system/dept',
        method: 'get',
    })
}
export function update (data) {
    return service({
        url: '/system/dept',
        method: 'put',
        data: data
    })
}
export function getLikeList (data) {
    return service({
        url: '/system/dept?name='+data.name,
        method: 'get',
    })
}
export default { add,getList,update,del,getLikeList }